﻿CREATE TABLE [dbo].[ReportUser] (
    [Id]          INT           IDENTITY (1, 1) NOT NULL,
    [UserName]    VARCHAR (50)  NOT NULL,
    [Password]    VARCHAR (50)  NOT NULL,
    [ListId]      VARCHAR (100) NULL,
    [RecStatus]   INT           NOT NULL,
    [RecCreateDt] DATETIME      NOT NULL,
    [RecUpdateDt] DATETIME      NULL,
    [RecDeleteDt] DATETIME      NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户名称', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportUser', @level2type = N'COLUMN', @level2name = N'UserName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户名称', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportUser', @level2type = N'COLUMN', @level2name = N'Password';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'可以使用的报表ID （1,2,3,4）', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportUser', @level2type = N'COLUMN', @level2name = N'ListId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'1-使用，2-禁用', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportUser', @level2type = N'COLUMN', @level2name = N'RecStatus';

